import type { AsyncDataResult, Dictionary } from './types'

export default interface IAggregate {
  count(table: string, conditions?: Dictionary, groupBy?: string): AsyncDataResult
  sum(table: string, column: string, conditions?: Dictionary, groupBy?: string): AsyncDataResult
  avg(table: string, column: string, conditions?: Dictionary, groupBy?: string): AsyncDataResult
  max(table: string, column: string, conditions?: Dictionary, groupBy?: string): AsyncDataResult
  min(table: string, column: string, conditions?: Dictionary, groupBy?: string): AsyncDataResult
}
